package week2;

public class Vehicle {
    private int speed;
    private int size;

    public Vehicle() {
    }

    public Vehicle(int speed, int size){
        this.speed = speed;
        this.size = size;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public void move(){
    }

    public int speedUp(int speed){
        this.speed += speed;
        return this.speed;

    }

    public int speedDown(int speed){
        this.speed -= speed;
        return this.speed;

    }

    public void get(){
        System.out.println(size);
        System.out.println(speed);
    }
}
